let config = (function () {
    let ENV = 'DEMO'; // 环境配置 必填项。【DEMO,DEV,TEST,PROD 】 【本地例子，开发，测试，正式】


    let PARAM = {
        'DEMO': {
            BASE_URL: 'http://192.168.52.198:3805',
            API_BASE_URL: 'http://192.168.52.198:9080/',
            API_WS: 'ws://192.168.52.198:8081/ws',
            UPLOAD_BASE_URL: 'http://192.168.52.198:9080/upload',
            IMG_URL: 'http://192.168.52.198:9080/public/',
            USE_MOCK: true,
            VERSION: '1.0.0',
            ENV: process.env.NODE_ENV
        },
        'DEV': {
            BASE_URL: 'https://www.aikor.work/',
            API_BASE_URL: 'https://www.aikor.work/api/',
            API_WS: 'wss://www.aikor.work/ws',
            UPLOAD_BASE_URL: 'https://www.aikor.work/api/upload',
            IMG_URL: 'https://www.aikor.work/api/public/',
            USE_MOCK: true,
            VERSION: '1.0.0',
            ENV: process.env.NODE_ENV
        }
    };

    return {
        ENV,
        PARAM: PARAM[ENV]
    }
})();

export default config;
